package com.yhq.spring.i18n;

import com.yhq.spring.i18n.config.MessageConf;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Locale;

/**
 * @author hqyin
 * @date 2023/4/21 11:36 上午
 */
public class TestMessage {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MessageConf.class);
        System.out.println(context.getMessage("名字",null,new Locale("zh_TW")));
    }
}
